﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BLToolkit.Mapping;
using BLToolkit.DataAccess;

namespace Entities
{
    public class HangHoa
    {
        [PrimaryKey,MapField("MaHH")]
       public string MaHH { get; set; }
       public  string TenHH { get; set; }
       public string LoaiHH { get; set; }
       public int SoLuong { get; set; }
       public int GiaMua { get; set; }
       public int GiaBan { get; set; }
       public string DonViTinh { get; set; }
       public string NgayHethan { get; set; }
        //[Association(ThisKey = "NhaCC", OtherKey = "MaNCC")]
       public string NhaCC { get; set; }
       public HangHoa()
       {
       }
       public HangHoa(string m, string te, string loai, int sol, int giamua, int giaban, string dvt, string ngayhh, string nhacc)
       {
           MaHH = m;
           TenHH = te;
           LoaiHH = loai;
           SoLuong = sol;
           GiaMua = giamua;
           GiaBan = giaban;
           DonViTinh = dvt;
           NgayHethan = ngayhh;
           NhaCC = nhacc;
       }
       
        
        
    }
}
